package com.haidechizi.designpattern.template.apply;

/**
 * @author haidechizi
 */
public abstract class AbstractWashCloth implements WashCloth {

    /**
     * 洗衣服
     */
    @Override
    public void wash() {
        addWater();
        doWash();
        spinDry();
    }

    /**
     * 放水
     */
    protected abstract void addWater();

    /**
     * 清洗
     */

    protected abstract void doWash();

    /**
     * 甩干
     */
    protected abstract void spinDry();
}
